#ifndef TABTENN0_H_
#define TABTENN0_H_
#include <string>
using std::string;
class TabletennisPlayer
{
public:
    TabletennisPlayer(const string &first = "none", const string &last = "none", bool hasTable = false)
        :firstname_(first), lastname_(last), hasTable_(hasTable){
    };
    void Name() const;
    bool hasTable() const;
    void resetHasTable(bool v);
private:
    std::string firstname_;
    std::string lastname_;
    bool hasTable_;
};

class RatePlayer: public TabletennisPlayer {
public:
    RatePlayer(int rate, const string &first  = "none", const string &last = "none", bool hasTable = false)
            :TabletennisPlayer(first, last, hasTable), rate_(rate){

            }
    RatePlayer(int rate, const TabletennisPlayer &tennis)
            :TabletennisPlayer(tennis), rate_(rate) {

            }
    void showRate();
private:
    int rate_;
};
#endif